import request from '@/http'
import config from '@/http/config'

const api = `${config.search.ip}/api/search`
/* 高级检索 */

// 创建模板
export const getMarkingPositionList5 = (data) => request({
  url: `${api}/template/add`,
  method: 'post',
  data
})

// 编辑模板
export const getMarkingPositionList4 = (data) => request({
  url: `${api}/template/update`,
  method: 'post',
  data
})

// 删除模板
export const getMarkingPositionList3 = (data) => request({
  url: `${api}/template/del`,
  method: 'post',
  data
})

// 模板列表
export const postRetrieveList = (data) => request({
  url: `${api}/template/getList`,
  method: 'post',
  data
})

// 模板详情
export const postRetrieveDetails = (data) => request({
  url: `${api}/template/getTemplateInfo`,
  method: 'post',
  data
})

// 搜索接口
export const postRetrieveSearch = (data) => request({
  url: `${api}/senior/buildSearch`,
  method: 'post',
  data
})
